package com.gwfd.mes.app.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;


import java.sql.Timestamp;

/**
 * @author 张照威
 * @date 2020/7/28
 * @mail 865533614@qq.com
 * @describe
 */
public class BaseDomain {

    @TableField(value = "id")
    protected String id;

    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    protected Long tenantId;

    @TableField(value = "enable_state",fill = FieldFill.INSERT)
    protected Integer enableState;

    @TableField(value = "delete_state",fill = FieldFill.INSERT)
    protected Integer deleteState;

    @TableField(value = "create_by",fill = FieldFill.INSERT)
    protected Long	createBy;

    @TableField(value = "create_date",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    protected Timestamp createDate;

    @TableField(value = "last_update_by",fill = FieldFill.INSERT_UPDATE)
    protected Long	lastUpdateBy;

    @TableField(value = "last_update_date",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    protected Timestamp lastUpdateDate;

    @TableField(value = "version_number",fill = FieldFill.INSERT_UPDATE)
    protected Integer versionNumber;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getEnableState() {
        return enableState;
    }

    public void setEnableState(Integer enableState) {
        this.enableState = enableState;
    }

    public Integer getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Integer deleteState) {
        this.deleteState = deleteState;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Long getLastUpdateBy() {
        return lastUpdateBy;
    }

    public void setLastUpdateBy(Long lastUpdateBy) {
        this.lastUpdateBy = lastUpdateBy;
    }

    public Integer getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(Integer versionNumber) {
        this.versionNumber = versionNumber;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public Timestamp getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Timestamp lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }
}
